#ifndef COLORCOMBOXPLUGINDESIGNER_H
#define COLORCOMBOXPLUGINDESIGNER_H

#include <QtUiPlugin/QDesignerCustomWidgetInterface>

class  ColorComboxPluginDesigner : public QObject, public QDesignerCustomWidgetInterface
{
    Q_OBJECT
    Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QDesignerCustomWidgetInterface" FILE "F:/WorkSpace/QWidgetVTKProject/src/QDesignerPlugin/ColorComboxForDesignerPlugin/plugin.json")
    Q_INTERFACES(QDesignerCustomWidgetInterface)
public:
    ColorComboxPluginDesigner(QObject* parent = 0);

    ////是否是一个容器
    bool isContainer() const;
    ////判断是否初始化了
    bool isInitialized() const;
    ////插件对应的图标
    QIcon icon() const;
    QString domXml() const;
    ////插件属于哪个组
    QString group() const;
    ////应该包含哪个文件
    QString includeFile() const;
    ////插件的名称
    QString name() const;
    ////插件的提示信息
    QString toolTip() const;
    ////插件的描述信息
    QString whatsThis() const;
    ////创建对应的widget
    QWidget* createWidget(QWidget* parent);
    void initialize(QDesignerFormEditorInterface* core);

private:
    bool initialized;
};

#endif // COLORCOMBOXPLUGINDESIGNER_H